﻿using System;
using Jayden.Dll.Web.Enums;
using Jayden.Dll.Web.HtmlControls.Descriptions;
using Jayden.Dll.Web.HtmlControls.Generics;
using Jayden.Dll.Web.HtmlControls.Interfaces;

namespace Jayden.Dll.Web.HtmlControls
{
	public class Summary : HtmlElement, WithHeight, WithWidth
	{
		public Summary() : base(SummaryDescription.Instance) { }

		public uint? Width { get { return GetAttributeUint("width"); } set { SetAttribute("width", value); } }
		public uint? Height { get { return GetAttributeUint("height"); } set { SetAttribute("height", value); } }
	}
	public class SummaryDescription : HtmlElementDescription
	{
		public static readonly SummaryDescription Instance = new SummaryDescription();
		private SummaryDescription() : base("summary", HtmlVersion.Html5) { }
		public override Type ControlType { get { return typeof(Summary); } }
		public override string Description { get { return "summary, caption, or legend for a details element."; } }
	}
}
